package com.example.flying_personnel_management_system.services;

import com.example.flying_personnel_management_system.dao.SysDeptMapper;
import com.example.flying_personnel_management_system.dao.SysUserMapper;
import com.example.flying_personnel_management_system.dao.WorkStatementMapper;
import com.example.flying_personnel_management_system.pojo.SysDept;
import com.example.flying_personnel_management_system.pojo.WorkStatement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class SericeDaoImp_Wu implements SericeDao_Wu{
    @Autowired
    WorkStatementMapper workStatementMapper;
    @Autowired
    SysUserMapper sysUserMapper;
    @Autowired
    SysDeptMapper sysDeptMapper;
    //显示所有报告
    @Override
    public List<HashMap<String,String>> wsAll(String name,String bumen) {
        //查找要搜索报告的id
        int a=sysUserMapper.allid(name,bumen);
        return workStatementMapper.wsAll(a);
    }
    //显示所有部门 wu
    @Override
    public List<SysDept> allbm() {
        return sysDeptMapper.allbm();
    }

}
